pow.ivyclient
Class AcNetId

java.lang.Object
  extended by pow.ivyclient.AcNetId

public class AcNetId
extends java.lang.Object

this object represents the data concerning a drone extracted from Ivy A drone has two identities. One on its ivy drone which can be the same as another drone on a different ivy bus. The second identifier is the I.D. of the drone on the web. This I.D. is unique. So a link has to be done between these two kind of id.

Author:
genin

Constructor Summary
AcNetId(int idBusIvy, java.lang.String idIvy, java.lang.String n, java.lang.String pln, java.lang.String s, java.lang.String c, int maxACOnIvy)
           
AcNetId(int idBusIvy, java.lang.String droneWebId, java.lang.String idIvy, java.lang.String n, java.lang.String pln, java.lang.String s, java.lang.String c, int maxACOnIvy)
           
 
Method Summary
 java.lang.String getColor()
          provides the color of the drone on the GCS view
 java.lang.String getIdOnIvy()
          provides the id of the drone on the ivy bus
 java.lang.String getIdOnWeb()
          provides the id of the drone on the web
 java.lang.String getName()
          provides the name of the drone on the ivy bus
 java.lang.String getPlnPath()
          provides the path of the xml file (on the server) containing the information of the flightplan of the drone (waypoints and blocks of instructions)
 java.lang.String getSettingPath()
          provides the path of the xml file (on the server) containing the settings of the drone
 java.lang.String toString()
          return information about the drone in a string format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AcNetId

public AcNetId(int idBusIvy,
               java.lang.String idIvy,
               java.lang.String n,
               java.lang.String pln,
               java.lang.String s,
               java.lang.String c,
               int maxACOnIvy)
Parameters:
idBusIvy - the id of the ivy bus
idIvy - the identifier of the drone on ivy
n - the name of the ivy drone (MJ5,TJ1...)
pln - the full pathname of the configuration file FlightPlan.xml
s - the full pathname of the configuration file Settings.xml
c - the color of the drone on ivy (in hexa '#FF00FF' or with its common name 'red')
maxACOnIvy - the maximal number of aircrafts on ivy bus (is no important anymore)

AcNetId

public AcNetId(int idBusIvy,
               java.lang.String droneWebId,
               java.lang.String idIvy,
               java.lang.String n,
               java.lang.String pln,
               java.lang.String s,
               java.lang.String c,
               int maxACOnIvy)
Parameters:
idBusIvy - the id of the ivy bus
droneWebId - the identifier of the drone on the web
idIvy - the identifier of the drone on ivy
n - the name of the ivy drone (MJ5,TJ1...)
pln - the full pathname of the configuration file FlightPlan.xml
s - the full pathname of the configuration file Settings.xml
c - the color of the drone on ivy (in hexa '#FF00FF' or with its common name 'red')
maxACOnIvy - the maximal number of aircrafts on ivy bus (is no important anymore)
Method Detail

getIdOnIvy

public java.lang.String getIdOnIvy()
provides the id of the drone on the ivy bus

Returns:
the id number of the drone on its ivy bus

getName

public java.lang.String getName()
provides the name of the drone on the ivy bus

Returns:
the name of the drone on its ivy bus

getIdOnWeb

public java.lang.String getIdOnWeb()
provides the id of the drone on the web

Returns:
the single id number of the drone on the web server

getPlnPath

public java.lang.String getPlnPath()
provides the path of the xml file (on the server) containing the information of the flightplan of the drone (waypoints and blocks of instructions)

Returns:
the full path of the flight plan config file on the GCS station

getSettingPath

public java.lang.String getSettingPath()
provides the path of the xml file (on the server) containing the settings of the drone

Returns:
the full path of the settings file on the GCS station

getColor

public java.lang.String getColor()
provides the color of the drone on the GCS view

Returns:
the color of the drone on the GCS station (either in string or in hexadecimal)

toString

public java.lang.String toString()
return information about the drone in a string format

Overrides:
toString in class java.lang.Object
Returns:
a string containing information about the drone